<html>
<head>
</head>
<body>
<div>
<pre formatcs=1>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace exp1
{
    class Program
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello, world!");
        }
    }
}

[XmlRoot("Node")]
class MyNode&lt;T&gt; : MyBaseClass&lt;T&gt;
    where T : Dictionary&lt;List&lt;T&gt;, int&gt;, ISerializable
{
    MyNode MyNode = new SuperNode();
    
    /// &lt;summary&gt;   *
    /// comment2... *
    /// &lt;/summary&gt;  *
    MyType1 foo(out MyType2 x)
    {
        x = MyType1.StaticFunction(@"c:\");
        Console.WriteLine(" aaaa \" \\\" \\\\");
        return new T();
    }
}

using System.Xml.Serialization;

namespace foo
{
    public partial class Form1&lt;AAA&gt; : Form
    {
        void bar&lt;T, R, L&gt;(int k, Form1 f)
            where T : ISerializable
            where R : Dictionary&lt;string, List&lt;Form1&gt;&gt;, ISerializable
        {
            Form1 Form1 = new Form1();
        }
    }
}

static string GetAllTypes()
{
    string regex = "";
    foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies())
    {
        foreach (Type type in asm.GetTypes())
        {
            string name = new Regex("(`.*)").Replace(type.Name, "");
            if (new Regex("^[A-Za-z0-9]+$").IsMatch(name))
            {
                regex += name + "|";
                Match match = new Regex("^(.+)Attribute$").Match(name);
                if (match.Success){
                    regex += match.Groups[1].Value + "|";
                }
            }
        }
    }
    return regex;
}

</pre>
</div>

<script type="text/javascript" src="csharp_formatter_normal.js"></script>
<script type="text/javascript">
findAndFormatCSharp();
</script>

</body>
</html>
